package cn.edu.neusoft.demo.hospital2.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;

@Data
@TableName("room")
public class Room {
    @TableId(value = "room_id", type = IdType.AUTO)
    private int roomId;
    private String roomName;
    private int departId2;
    private int departId1;
    private int floor;

    // 非数据库字段
    @TableField(exist = false)
    private String mainDepartmentName;
}
